package sphere.model;

public class Sphere {
	private int rayon;
	
	
	public Sphere(int r){
		this.rayon = r;
	}

	/**
	 * @return the rayon
	 */
	public int getRayon() {
		return rayon;
	}

	/**
	 * @param rayon the rayon to set
	 */
	public void setRayon(int rayon) {
		this.rayon = rayon;
	}
	
	public double surfaceSphere(){
		double A;
		A = 4 * Math.PI*Math.pow(this.rayon,2);
		return A;
	}
	
	public double volumeSphere(){
		double v;
		v = 4 / 3 * Math.PI*Math.pow(this.rayon, 3);
		return v;
	}

}
